import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
// import { Link, Button, Select,Steps,Step,Menu,MenuItem,Submenu,Checkbox,Message} from 'element-ui'
import { Link, Button, Select, Image, Col, Loading, Steps, Step, Menu, MenuItem,Popover,Submenu, Checkbox, Message, InputNumber, Header, Aside, Main, Container, MenuItemGroup, Option, Pagination, RadioGroup, Radio, Input, Form,
  FormItem, Upload, Dialog, Badge, Breadcrumb, BreadcrumbItem, Rate, Collapse, CollapseItem, Table, TableColumn, Row, Carousel, CarouselItem, MessageBox, CheckboxGroup } from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import './assets/iconfont/iconfont.css' // 引入字体图标样式
import BaiduMap from 'vue-baidu-map' // 引入百度地图
import { BaiDuMapWebAK } from '@/js/constant' // 引入百度地图密钥
import * as filters from '@/filters'
import VueCropper from 'vue-cropper'
import { parseTime } from '@/api/web-site-announcement'
Vue.use(VueCropper)
// 使用百度地图
Vue.use(BaiduMap, {
  /* Visit http://lbsyun.baidu.com/apiconsole/key for details about app key. */
  ak: BaiDuMapWebAK
})

Vue.use(Link)
Vue.use(Button)
Vue.use(Select)
Vue.use(Steps)
Vue.use(Step)
Vue.use(Menu)
Vue.use(MenuItem)
Vue.use(Submenu)
Vue.use(Checkbox)
Vue.use(Header)
Vue.use(Aside)
Vue.use(Main)
Vue.use(Container)
Vue.use(MenuItemGroup)
Vue.use(Option)
Vue.use(InputNumber)
Vue.use(Pagination)
Vue.use(Collapse)
Vue.use(RadioGroup)
Vue.use(Radio)
Vue.use(Input)
Vue.use(Form)
Vue.use(FormItem)
Vue.use(Upload)
Vue.use(BreadcrumbItem)
Vue.use(Badge)
Vue.use(Breadcrumb)
Vue.use(Dialog)
Vue.use(Rate)
Vue.use(CollapseItem)
Vue.use(Table)
Vue.use(TableColumn)
Vue.use(Row)
Vue.use(Carousel)
Vue.use(CarouselItem)
Vue.use(CheckboxGroup)
Vue.use(Image)
Vue.use(Col)
Vue.use(Popover)
Vue.prototype.$message = Message
Vue.prototype.$confirm = MessageBox.confirm
Vue.prototype.$Loading = Loading
Vue.prototype.parseTime = parseTime
Vue.config.productionTip = false
Object.keys(filters).forEach(key => Vue.filter(key, filters[key]))
new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
